﻿using System;
using System.Drawing;
using System.Collections;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.ComponentModel;
using System.IO;
using System.Web.Security;
using webapp4U;
using webapp4U.BOL;

namespace webapp4U.UI
{
    [ParseChildren(true)]
    public class ddlCompany : DropDownList
    {
        public ddlCompany()
        {
            List<Companies> obj = Companies.GetAllCompanies();
            this.DataSource = obj;
            this.DataValueField = "CompanyID";
            this.DataTextField = "CompanyName";
            this.DataBind();
            this.Items.Insert(0, new ListItem(ResourceManager.GetString("Company_PleaseSelect"), ""));
        }
    }
}
